/**
 * @projectName demo-master
 * @fileName TestController.java
 * @packageName org.example.provider.controller
 * @author xaoyaoyao
 * @date 2021/3/24 09:18
 * @version V1.0
 * @copyright (c) 2021, xaoyaoyao@aliyun.com All Rights Reserved.
 */
package org.example.provider.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xaoyaoyao
 * @className TestController
 * @description
 * @date 2021/3/24 09:18
 */
@RestController
public class TestController {

	@RequestMapping(value = "/echo/{string}", method = RequestMethod.GET)
	public String echo(@PathVariable String string) {
		return "Hello Nacos Discovery " + string;
	}

	@GetMapping("/helloNacos")
	public String helloNacos() {
		return "你好，nacos！";
	}
}
